﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace He.Common
{

    public static class StringExtensions
    {
        /// <summary>
        /// 截取字符长度
        /// </summary>
        /// <param name="input">字符</param>
        /// <param name="len">长度</param>
        /// <returns></returns>
        public static string SubStr(this object input, int len)
        {
            return StringHelper.CutString(input, len);
        }
        /// <summary>
        /// 截取字符长度
        /// </summary>
        /// <param name="input">字符</param>
        /// <param name="len">长度</param>
        /// <returns></returns>
        public static string SubStr(this string input, int len)
        {
            return StringHelper.CutString(input, len);
        }
    }
}
